package com.xspace.android.xafcommon.network.exception;

public class HttpException extends DigitException {
    public static final int JSON_ERROR = -1;
    public static final int NETWORK_ERROW = -2;
    public static final int IO_ERROR = -4;
    public static final int OTHER_ERROR = -3;
    public static final int ENCRYPT_ERROR = -4;
    /**
     * xmpp登录提示
     */
    public static final int LOGIN_SECCESS = 0;// 成功
    public static final int LOGIN_ERROR_ACCOUNT_PASS = 3;// 账号或者密码错误
    public static final int SERVER_UNAVAILABLE = 4;// 无法连接到服务器
    public static final int LOGIN_ERROR = 5;// 连接失败
    public static final String DATA_ENCRYPT_FAIL = "解密失败";// 连接失败
    public static final String PARSE_JSON_ERROR = "Json解析失败";// 连接失败
    public static final String NET_WORK_ERROR = "网络不给力";// 网络异常



    private static final long serialVersionUID = -62849009794407100L;

    public HttpException() {
        super();
    }

    public HttpException(Throwable e) {
        e.getCause();
    }

    public HttpException(String msg, int code) {
        super(msg, code);
    }

    public HttpException(String msg) {
        super(msg);
    }

}
